import BaseView from "../../cfw/mvc/BaseView";
import LobbyController from "./LobbyController";
import SDKManager from "../../sdk/SDKManager";
import { SDKEventName } from "../../sdk/SDKConfig";

const { ccclass, property } = cc._decorator;

@ccclass
export default class LobbyView extends BaseView {

    protected controller: LobbyController;

    start() {
        this.controller = LobbyController.instance();
        cc.warn('LobbyView start')
        SDKManager.getChannel().sendEvent(SDKEventName.enterlobby)
    }


    // onButtonSuitcaseClick(){
    //     this.controller.intoSuitcases()
    // }


    onButtonPaintPailClick() {
        this.controller.intoDecorationRoom()
    }

    onButtonDoorClick() {
        this.controller.intoOutDoor();
    }

    onButtonCristmasTreeClick() {
        this.controller.intoCristmasRoom()
    }

    onButtonCookieClick() {
        this.controller.intoCookie()
    }

    onButtonDressingClick(event, data) {
        this.controller.intoDressingRoom(parseInt(data))
    }


    onGiftButtonClick(){
        this.controller.intoGift()
    }
}
